import request from '@/utils/request'
//查询
export const noticeListService = () => {
    return request.get('/notice/notice-list')
}
export const noticeTypeListServce = () => {
    return request.get('/notice/noticeType-list')
}

//添加
export const noticeAddService = (noticeData) => {
    return request.post('/notice/add-notice', noticeData)
}
export const noticeTypeAddService = (noticeTypeData) => {
    return request.post('/notice/add-noticeType', noticeTypeData)
}
//修改
export const noticeUpdateService = (noticeData) => {
    return request.put('/notice/update-notice', noticeData)
}
export const noticeTypeUpdateService = (noticeTypeData) => {
    return request.put('/notice/update-noticeType', noticeTypeData)
}
//删除
export const noticeDeleteService = (id) => {
    return request.delete('/notice/delete-notice?noticeId=' + id)
}
export const noticeTypeDeleteService = (id) => {
    return request.delete('/notice/delete-noticeType?typeId=' + id)
}